<div class="RightColumn">
            <div class="P10">
            <div class="BorderBot01" style="height:50px">
                <div style="float:left"><h2 class="Title01 P10">Banner Manager</h2></div>
                <div class="P10" style="width:120px; float:right; margin-right:30px; display:none"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editbanner" class="Button01" title="add new banner">ADD NEW</a></div>
            </div>
                <br clear="all" />
                
                <div class="P10">
                    <h4 class="Title02 P10Bot">Home Banners:</h4>
                    <p class="FS12 P10Tb">
                        These banners will appear in homepage. Best width is <strong>700px</strong>
                    </p>
			<?php 
				foreach($banners as $item)
				{
			?>
                    <div class="ThreeColumns">
                        <div class="SubLeftCol">
                        <?php if (isset($banners[0]['image']))
							{
							?>
						        <img src="<?php echo base_url(); ?>upload_file/slideshow/<?php echo $item['image']; ?>" width="279px" />
                            <?php 
							}
							else
							{
							?>
                            <img src="<?php echo base_url(); ?>assets/img/noimage.png" width="280px" />
                            <?php 
							}
							?>
                        </div>
                        <div class="SubCenterCol">
                            <h4 class="Title02 P10Bot"><?php echo $item['title']; ?></h4>
                            <p class="P10Bot"><?php echo $item['content']; ?></p>
                            <p>Sort order: <?php echo $item['sorting']; ?></p>
                        </div>
                        <div class="SubRightCol">
                            <div class="Position01">
                                <a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/editbanner/<?php echo $item['slideshow_id']; ?>" class="Button01" title="edit image">edit banner</a>
                            </div>
                        </div>
                    </div>
			<?php 
				}
			?>

                </div>
            </div>
       </div>

       
<script>
jQuery(document).ready(function(){
	jQuery("#BannerManager").addClass('current');
});
</script>